<?php
	if (!isset($_SESSION['id'])) {
		session_start();
	}
	include_once "db/db.php";
	
?>
<html>
<head>
	<title>The Game of Life!</title>
	<link type="text/css" href="css/ui-lightness/jquery-ui-1.8.9.custom.css" rel="stylesheet" />	
	<link type="text/css" href="css/style.css" rel="stylesheet" />	
	<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
	<script type="text/javascript" src="js/jquery-ui-1.8.9.custom.min.js"></script>
	<script type="text/javascript" src="js/global.js"></script>
</head>

<body>
<table class="header">
	<tr>
		<td>
			<h1><img src="images/<?= (isset($banner_url) ? $banner_url : 'life_banner.png') ?>" alt="The Game of LIFE"/></h1>
		</td>
		<td id="nav">
			<?php if (isset($current_game)) { ?>
				<span class="info">Game "<?= $current_game['name']; ?>"</span>
				<br/>
				<a href="config.php">Game Config</a>
				<br/>
				<a href="close.php">Save &amp; Close Game</a>
				<br/>
			<?php } ?>
		</td>
	</tr>
</table>

